Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

Resetting a Tween Component

Your tween component must process kTweenerResetSelect requests from the Component Manager. Listing 23 shows the TweenReset function, which resets the component. In this example, because TweenerInitialize does not allocate any storage, TweenerReset simply returns. In a more complex example, TweenerReset releases any storage allocated by TweenerInitialize and any storage allocated during the tween operation.

Listing 23 Function that resets a tween component

pascal ComponentResult TweenerReset (TweenerComponent tc)
{
    return noErr;
}

© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |